package com.yuanfeng.base.controller;

import com.yuanfeng.commoms.util.ResponseResult;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @ClassName BaseCommonCornerMarkerController
 * @Description
 * @Author hyq
 * @Date 2023/7/10 10:01
 * @Version 1.0
 **/
@RestController
@RequestMapping("base/commonCornerMarker")
public class BaseCommonCornerMarkerController extends BaseController{


    /**
     * 查询商品角标列表
     *
     * @return
     */
    @PostMapping(value = "/list/query")
    public ResponseResult queryCornerMarkerList(@RequestBody Map<String,Object> param) {
        ResponseResult result=baseCommonCornerMarkerService.queryCornerMarkerList(param);
        return result;
    }

    /**
     * 更新或新增角标
     *
     * @return
     */
    @PostMapping(value = "/update")
    public ResponseResult updateCornerMarker(@RequestBody Map<String,Object> param) {
        ResponseResult result=baseCommonCornerMarkerService.updateCornerMarker(param);
        return result;
    }

}
